package command;

public class CommandTest {
    public static void main(String[] args) {
        Light light = new Light();
        Command lightOnCommand = new LightOnCommand(light);
        RemoteControl remote = new RemoteControl(lightOnCommand);

        remote.pressButton();  // 输出: Light is ON
    }
}
